import http from "./http";
import qs from "qs";

// 订单管理-卖出单汇总
export const drawSum = (params) => {
  return http.get("/manager/managerOrder/drawSum", params)
}
// 订单管理-卖出单列表
export const drawPage = (params) => {
  return http.get("/manager/managerOrder/drawPage", params)
}
// 订单管理-卖出单详情
export const drawOrderInfo = (params) => {
  return http.get("/manager/managerOrder/drawOrderInfo", params)
}

// 订单管理-买入单汇总
export const rechargeSum = (params) => {
  return http.get("/manager/managerOrder/rechargeSum", params)
}
// 订单管理-买入单详情
export const rechargeOrderInfo = (params) => {
  return http.get("/manager/managerOrder/rechargeOrderInfo", params)
}
// 订单管理-买入单列表
export const rechargePage = (params) => {
  return http.get("/manager/managerOrder/rechargePage", params)
}

// 订单管理-仲裁列表
export const arbitratePage = (params) => {
  return http.get("/manager/managerOrder/arbitratePage", params)
}
// 订单管理-仲裁回复
export const updateArbitRateStatus = (params) => {
  return http.post("/manager/managerOrder/updateArbitRateStatus", params)
}
// 订单管理-挂单
export const orderPlace = (params) => {
  return http.post("/manager/managerOrder/orderPlace", params)
}
// 订单管理-订单查询
export const getInfoByOrderNo = (params) => {
  return http.get("/manager/managerOrder/getInfoByOrderNo", params)
}
// 订单管理-仲裁明细
export const arbitrateInfo = (params) => {
  return http.get("/manager/managerOrder/arbitrateInfo", params)
}
// 订单管理-仲裁订单交易失败
export const arbitrateAuditReject = (params) => {
  return http.post("/manager/managerOrder/arbitrateAuditReject", qs.stringify(params))
}
// 订单管理-仲裁订单交易成功
export const arbitrateAuditPass = (params) => {
  return http.post("/manager/managerOrder/arbitrateAuditPass", qs.stringify(params))
}
// 订单管理-订单仲裁中改为审核中
export const updateAuditStatus = (params) => {
  return http.post("/manager/managerOrder/updateAuditStatus", qs.stringify(params))
}

// 获取内部会员列表
export const getInsideUserList = (params) => {
  return http.get("/manager/member/getInsideUserList", params)
}

// 订单管理-仲裁聊天室-常用语/常用术语列表
export const getMessageList = (params) => {
  return http.get("/manager/arbitrateChat/messageList", params)
}
// 订单管理-仲裁聊天室-保存术语
export const saveMsg = (params) => {
  return http.post("/manager/arbitrateChat/saveMsg", params)
}
// 订单管理-仲裁聊天室-删除术语
export const deleteMsg = (params) => {
  return http.get("/manager/arbitrateChat/deleteById", params)
}
// 订单管理-仲裁聊天室-转交封控
export const updateArbitrateStatus = (params) => {
  return http.post("/manager/arbitrateChat/updateArbitrateStatus", params)
}
// 订单管理-仲裁聊天室-卖家胜出
export const sellerWin = (params) => {
  return http.post("/manager/arbitrateChat/sellerWin", params)
}
// 订单管理-仲裁聊天室-买家胜出
export const buyerWin = (params) => {
  return http.post("/manager/arbitrateChat/buyerWin", params)
}
// 订单管理-仲裁聊天室-获取仲裁导航信息
export const navigationList = (params) => {
  return http.get("/manager/arbitrateChat/navigationList", params)
}
// 订单管理-仲裁聊天室-获取卖家放币时间限制
export const getTImeCountDown = (params) => {
  return http.get("/manager/arbitrateChat/getTImeCountDown", params)
}


// eslint-disable-next-line import/no-anonymous-default-export
export default {
  drawSum,
  drawPage,
  rechargeSum,
  rechargePage,
  arbitrateInfo,
  
  updateAuditStatus,
  arbitrateAuditPass,
  arbitrateAuditReject,
  getInfoByOrderNo,
  updateArbitRateStatus,
  orderPlace,
  arbitratePage,
  rechargeOrderInfo,
  drawOrderInfo,

  getMessageList,
  saveMsg,
  deleteMsg,
  updateArbitrateStatus,
  sellerWin,
  buyerWin,
  navigationList,
  getTImeCountDown,
}